x86/hvm: Correct some address space terminology
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 31 Mar 2017 15:06:07 +0000 (16:06 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 6 Apr 2017 17:12:58 +0000 (18:12 +0100)
commitdf429b9c3f06cb0a04a799e58447548794d1f254
treea050e37d9320b089587dd69c061f360ddc8935a6
parent4feb9779c92783c47ef1d75b5ab3823888313aac
x86/hvm: Correct some address space terminology

The function hvm_translate_linear_addr() translates a virtual address to a
linear address, not a linear address to a physical address.  Correct its name.

Both hvm_translate_virtual_addr() and hvmemul_virtual_to_linear() return a
linear address, but a parameter name of paddr is easily confused with paddr_t.
Rename it to linear, to clearly identify the address space, and for
consistency with hvm_virtual_to_linear_addr().

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/mm/shadow/common.c